﻿<%@ Page Language="C#" MasterPageFile="~/Admin/admin.master" AutoEventWireup="true"
    CodeFile="CreditCard.aspx.cs" Inherits="CreditCardPage" Title="CreditCard List" %>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" runat="Server">
    Credit Card List</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <data:GridViewSearchPanel ID="GridViewSearchPanel1" runat="server" GridViewControlID="GridView1"
        PersistenceMethod="Session" />
    <br />
    <data:EntityGridView ID="GridView1" runat="server" AutoGenerateColumns="False" OnSelectedIndexChanged="GridView1_SelectedIndexChanged"
        DataSourceID="CreditCardDataSource" DataKeyNames="CreditCardId" AllowMultiColumnSorting="false"
        DefaultSortColumnName="" DefaultSortDirection="Ascending" ExcelExportFileName="Export_CreditCard.xls">
        <Columns>
            <asp:CommandField ShowSelectButton="True" ShowEditButton="True" />
            <asp:BoundField DataField="CardType" HeaderText="Card Type" SortExpression="[CardType]" />
            <asp:BoundField DataField="PassportNumber" HeaderText="Passport Number" SortExpression="[PassportNumber]" />
            <data:BoundRadioButtonField DataField="IsDisabled" HeaderText="Is Disabled" SortExpression="[IsDisabled]" />
            <asp:BoundField DataField="IssuanceBank" HeaderText="Issuance Bank" SortExpression="[IssuanceBank]" />
            <asp:BoundField DataField="CardNumber" HeaderText="Card Number" SortExpression="[CardNumber]" />
            <asp:BoundField DataField="CardHolderName" HeaderText="Card Holder Name" SortExpression="[CardHolderName]" />
            <asp:BoundField DataField="ExpiredDate" HeaderText="Expired Date" SortExpression="[ExpiredDate]" />
            <asp:BoundField DataField="Cvv" HeaderText="Cvv" SortExpression="[CVV]" />
        </Columns>
        <EmptyDataTemplate>
            <b>No CreditCard Found!</b>
        </EmptyDataTemplate>
    </data:EntityGridView>
    <br />
    <asp:Button runat="server" ID="btnCreditCard" OnClientClick="javascript:location.href='CreditCardEdit.aspx'; return false;"
        Text="Add New"></asp:Button>
    <data:CreditCardDataSource ID="CreditCardDataSource" runat="server" SelectMethod="GetPaged"
        EnablePaging="True" EnableSorting="True">
        <parameters>
				<data:CustomParameter Name="WhereClause" Value="" ConvertEmptyStringToNull="false" />
				<data:CustomParameter Name="OrderByClause" Value="" ConvertEmptyStringToNull="false" />
				<asp:ControlParameter Name="PageIndex" ControlID="GridView1" PropertyName="PageIndex" Type="Int32" />
				<asp:ControlParameter Name="PageSize" ControlID="GridView1" PropertyName="PageSize" Type="Int32" />
				<data:CustomParameter Name="RecordCount" Value="0" Type="Int32" />
			</parameters>
    </data:CreditCardDataSource>
</asp:Content>
